package unit04.day03;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * finally对于流的处理
 * @author cola
 *
 */
public class ExceptionDemo3 {

	public static void main(String[] args) {
		BufferedReader br = null;
		try {
			br = new BufferedReader(
					new InputStreamReader(
							new FileInputStream(
									"src/unit04/day03/ExceptionDemo3.java"
									)
							)
					);
			String flag = null;
			while((flag = br.readLine()) != null) {
				System.out.println(flag);
			}
		}catch(Exception e) {
			System.out.println("出错了");
		}finally {
			try {
				br.close();
			} catch (IOException e) {
			}
		}
	}

}
